from django.urls import path, include

from . import views


app_name = "mydoctor"
urlpatterns = [
    path("", views.index, name="index"),
    path("signup/", views.SignupView.as_view(), name="signup"),
    path("chat/", views.Chat.as_view(), name="chat"),
    path("data/", views.Data.as_view(), name="data"),
    path("chat/<int:qa_id>", views.Chat.as_view(), name="chat"),
    path("api/", include(([
        path("chattext/", views.ChatText.as_view(), name="chattext"),
        path("chatimage/", views.ChatImage.as_view(), name="chatimage"),
        path("uploadfile/", views.UploadFile.as_view(), name="uploadfile"),
        path("file/<str:name>", views.FileView.as_view(), name="file"),
        path("getqa/<int:qa_id>", views.GetQA.as_view(), name="getqa"),
    ], "api"))),
]
